package com.hospital.dao;

import com.hospital.dto.LogisticsDto;
import com.hospital.dto.LogisticsStateDto;
import com.hospital.entity.Logistics;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LogisticsDao {
    int add(LogisticsDto logisticsDto);

    int delete(Integer id);

    int update(LogisticsDto logisticsDto);

    int updateState(@Param("id")Integer id , @Param("state")Integer state);

    long selectCount(String info);

    List<LogisticsDto> all();

    List<LogisticsDto> selectPage(@Param("info") String info, @Param("start") int start, @Param("size") int size);

    int saveBatch(List<Logistics> list);
    int delByIds(int[] ids);

    List<LogisticsStateDto> selectState();
}